package com.songcha.library_business.api

import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_business.bean.configuration.SystemConfigurationBean
import com.songcha.library_business.bean.user.UserInfoBean
import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseStringDataBean
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {

    @GET("/api/token/getUserInfoByToken")
    fun getUserInfo():Observable<UserInfoBean>

    @GET("/api/getSystemControl")
    fun getSystemConfiguration():Observable<SystemConfigurationBean>

    @GET("/api/token/updateClientIp")
    fun updateClientIp():Observable<BaseBean>

    @GET("/api/startClient")
    fun appStart():Observable<BaseBean>

    @GET("/api/deviceLogin")
    fun loginByDeviceId(@Query("deviceId") deviceId:String):Observable<BaseStringDataBean>

}